﻿@model KPIS.GERP.Models.ICM.BidderCollateral


@if(Model != null)
{
    
@Html.HiddenFor(model => model.BidderColId)

<div class="widget-box">
	<div class="widget-header header-color-blue2">
        <h4 class="lighter smaller">ข้อมูลรายละเอียดหลักประกัน</h4>
    </div>

    <div class="widget-body">
        <div class="widget-body-inner">
			<div class="widget-main form-horizontal">
                <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.BidderColId)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.DisplayFor(model => model.BidderColId)
                    </div>
                </div>
                <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.Code)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.DisplayFor(model => model.Code)
                    </div>
                </div>
                <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.ColTypeId)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.DisplayFor(model => model.CollateralType.LookUpName)
                    </div>
                </div>
                
                <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.Amount)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                        @(Model.Amount.HasValue ? Model.Amount.Value.ToString("#,##0.00") : "0.00") บาท
                    </div>
                </div>

                 <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.Descr)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                         @Html.DisplayNameFor(model => model.Descr)
                    </div>
                </div>

                <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.ReceiptNo)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                         @Html.DisplayNameFor(model => model.ReceiptNo)
                    </div>
                </div>

                <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.ReturnDate)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                         @Html.DisplayNameFor(model => model.ReturnDate)
                    </div>
                </div>

                <div class="control-group">
                    <div class="control-label">
                        วันที่ครบกำหนดคืนหลักประกัน
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.DisplayNameFor(model => model.ReturnDueDate)
                    </div>
                </div>

                 <div class="control-group">
                    <div class="control-label">
                         @Html.DisplayNameFor(model => model.ColStatusId)
                    </div>
                    <div class="controls-detail" style="margin-top:5px !important;">
                         @Html.DisplayFor(model => model.CollateralStatus.LookUpName)
                    </div>
                </div>

                <div class="control-group">
                     <div class="control-label">
                        @Html.DisplayNameFor(model => model.ColCategoryId)
                     </div>
                     <div class="controls-detail" style="margin-top:5px !important;">
                        @Html.DisplayFor(model => model.CollateralCategory.LookUpName)
                     </div>
                </div>
            </div>
        </div>
    </div>
 </div>
}
